import request from '@/utils/request'

const url = '/monitor/loginlog'

// 查询登录日志列表
export function list(params) {
  return request({
    url,
    method: 'get',
    params
  })
}

// 删除登录日志
export function delloginlog(ids) {
  return request({
    url: `${url}/${ids}`,
    method: 'delete'
  })
}

// 解锁用户登录状态
export function unlockloginlog(userName) {
  return request({
    url: `${url}/unlock/${userName}`,
    method: 'post'
  })
}

// 清空登录日志
export function cleanloginlog() {
  return request({
    url: `${url}/clean`,
    method: 'delete'
  })
}
